home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / kernel / Makefile.dos < prev    next >
Encoding:
Makefile  |  1996-07-07  |  3.1 KB  |  172 lines  |  [TEXT/R*ch]

  1. # Makefile for interface-independent code in Xconq.
  2. # Copyright (C) 1994 Ed Boston.
  3.  
  4. # Xconq is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. srcdir = .
  10.  
  11. # Set this for wherever the library directory should be.
  12.  
  13. libdir = $(srcdir)/../lib
  14.  
  15. # Set this for wherever the man page should live.
  16.  
  17. MANDIR = /usr/man/manl
  18.  
  19. CC = cl
  20.  
  21. CFLAGS = -AL -Od -Zepi -DDEBUG -Gt10 
  22.  
  23. # Host and target-dependent makefile fragments come in here.
  24. ####
  25. # End of host and target-dependent makefile fragments.
  26.  
  27. GAME_H = game.h gvar.def utype.def mtype.def ttype.def table.def
  28.  
  29. UNIT_H = unit.h action.def plan.def task.def
  30.  
  31. ALL_H = conq.h config.h misc.h dir.h lisp.h $(GAME_H) player.h side.h \
  32.     $(UNIT_H) world.h history.h history.def module.h score.h \
  33.     ai.h goal.def keyword.def
  34.  
  35. # Non-interface-specific object files.
  36.  
  37. OBJ = \
  38.     init.obj \
  39.     cmdline.obj \
  40.     ai.obj \
  41.     mplay.obj \
  42.     mplay2.obj \
  43.     actions.obj \
  44.     combat.obj \
  45.     run.obj \
  46.     score.obj \
  47.     world.obj \
  48.     history.obj \
  49.     module.obj \
  50.     write.obj \
  51.     read.obj \
  52.     lisp.obj \
  53.     mkterr.obj \
  54.     mkunits.obj \
  55.     mkrivers.obj \
  56.     mkroads.obj \
  57.     mknames.obj \
  58.     side.obj \
  59.     unit.obj \
  60.     plan.obj \
  61.     plan2.obj \
  62.     task.obj \
  63.     nlang.obj \
  64.     grutil.obj \
  65.     ps.obj \
  66.     util.obj \
  67.     help.obj \
  68.     copying.obj \
  69.     dos.obj
  70.  
  71. # Object files needed by nonspecialized executables.
  72.  
  73. GOBJ =    generic.obj \
  74.     types.obj \
  75.     tables.obj
  76.  
  77. # Random C compiler flags.
  78.  
  79. MSDOS_CFLAGS = -DMSDOS -DXCONQLIB=\"$(libdir)\"
  80.  
  81. ALL_CFLAGS = $(CFLAGS) $(MSDOS_CFLAGS) -I$(srcdir)
  82.  
  83. .c.obj:
  84.     $(CC) -c /YX $(ALL_CFLAGS) $<
  85.  
  86. # Do it all.
  87.  
  88. all: conq.lib skelconq.exe
  89.  
  90. # The kernel library.  This is linked with interface code.
  91.  
  92. conq.lib: $(OBJ) $(GOBJ)
  93.     !lib /PAGE:32 conq.lib -+$?;
  94.  
  95. # Test version of xconq.
  96.  
  97. skelconq.exe: skelconq.obj $(OBJ) $(GOBJ) compile.obj
  98.     $(CC) $(ALL_CFLAGS) skelconq.obj $(OBJ) $(GOBJ) compile.obj
  99.  
  100. # Support things.
  101.  
  102. # (should do with a shell script, then can intercept failures)
  103. special.h: skelconq
  104.     skelconq <compile >special.h
  105.  
  106. tests:
  107.     run-tests
  108.  
  109. # Usual cleaning, and flushing of anything junk-like.
  110.  
  111. clean:
  112.     del *.obj 
  113.     del *.log
  114.     del *.bak
  115.  
  116. distclean: clean
  117.     del *.exe
  118.     del *.lib
  119.     del msvc.*
  120.  
  121. realclean: distclean
  122.  
  123. # All the .h dependencies.
  124.  
  125. init.obj:        $(ALL_H)
  126. cmdline.obj:    $(ALL_H)
  127. mknames.obj:    $(ALL_H)
  128. ai.obj:        $(ALL_H)
  129. actions.obj:    $(ALL_H)
  130. combat.obj:    $(ALL_H)
  131. plan.obj:        $(ALL_H)
  132. plan2.obj:    $(ALL_H)
  133. task.obj:        $(ALL_H)
  134. run.obj:        $(ALL_H)
  135. score.obj:    $(ALL_H)
  136. world.obj:    $(ALL_H)
  137. history.obj:    $(ALL_H)
  138. module.obj:    $(ALL_H)
  139. read.obj:        $(ALL_H)
  140. write.obj:    $(ALL_H)
  141. side.obj:        $(ALL_H)
  142. unit.obj:        $(ALL_H)
  143. help.obj:        $(ALL_H)
  144. nlang.obj:    $(ALL_H)
  145. grutil.obj:    $(ALL_H)
  146. ps.obj:        $(ALL_H)
  147. util.obj:        $(ALL_H)
  148. dos.obj:        $(ALL_H)
  149. mkunits.obj:    $(ALL_H)
  150. mkterr.obj:    $(ALL_H)
  151. mkrivers.obj:    $(ALL_H)
  152. mkroads.obj:    $(ALL_H)
  153.  
  154. generic.obj:    config.h misc.h lisp.h $(GAME_H)
  155. types.obj:    config.h misc.h lisp.h $(GAME_H)
  156. tables.obj:    config.h misc.h lisp.h $(GAME_H)
  157.  
  158. lisp.obj:        config.h misc.h lisp.h
  159.  
  160. mplay.obj:    $(ALL_H) mplay.h
  161. mplay2.obj:    $(ALL_H) mplay.h
  162.  
  163. skelconq.obj:    $(ALL_H)
  164.  
  165. # This *must* be compiled by a proper ANSI compiler.
  166.  
  167. compile.obj:    $(ALL_H)
  168.  
  169.  
  170.  
  171.  
  172.